<?php
include_once('../../../php/bootstrap.php');

$q = Doctrine_Query::create()
    ->update('Contrato')
    ->set('id_estado', 2)
    ->andWhereIn('id', $_POST['contratos']);
$q->execute();
?>